package com.westos.userauth.dao;

import com.westos.userauth.domain.SecurityGroupPermission;

import java.util.List;

public interface SecurityGroupPermissionDao {
    /**
     * 根据权限id查询权限组
     * 
     */
    List<SecurityGroupPermission> querySecurityGroupPermissionById(String permissionId,String groupId);

    /**
     * 根据用户id查询权限id
     */
    List<SecurityGroupPermission> querySecurityGroupPermissionByLoginId(String loginId,String permissionId);

    //删除中间表的引用 ws
    int deleteSecurityGroupPermission(List<String> list,String groupId);
    //根据权限组id 查询SecurityGroupPermission ws
    List<SecurityGroupPermission> querySecurityGroupPermission(String groupId);
    //添加权限到权限组 （lh）
    int addSecurityPermissionToSecurityGroup(SecurityGroupPermission securityGroupPermission);
    //根据权限组id和权限id查询（lh）
    SecurityGroupPermission querySecurityGroupPermission(String permissionId,String groupId);


    //从安全组中删除权限 (zpc)
    boolean removeSecurityPermissionFromSecurityGroup(String permissionId,String groupId);
}
